package Team.Listener.Login;

import java.awt.event.*;

import Team.View.Login.*;
import javax.swing.*;

import Team.Controller.*;
import Team.Model.*;


public class ExitButtonListener implements ActionListener
{
	public ExitButtonListener(TeamLoginView view, TeamModel model)
	{
	    this.view = view;
	    this.model = model;
	}
    public void actionPerformed(ActionEvent event)
    {
       int choice = JOptionPane.showConfirmDialog(null, "Do you want to exit?");
       if (choice == JOptionPane.YES_OPTION)
       {
    	   System.exit(0);
       }
    }
    
    private TeamLoginView view;
    private TeamModel model;
}
